package com.mdd.admin.service;

import com.mdd.admin.validate.commons.PageValidate;
import com.mdd.admin.validate.ClientCrmBusinessCreateValidate;
import com.mdd.admin.validate.ClientCrmBusinessUpdateValidate;
import com.mdd.admin.validate.ClientCrmBusinessSearchValidate;
import com.mdd.admin.vo.ClientCrmBusinessListedVo;
import com.mdd.admin.vo.ClientCrmBusinessDetailVo;
import com.mdd.common.core.PageResult;

/**
 * 商机服务接口类
 * @author LikeAdmin
 */
public interface IClientCrmBusinessService {

    /**
     * 商机列表
     *
     * @author LikeAdmin
     * @param pageValidate 分页参数
     * @param searchValidate 搜索参数
     * @return PageResult<ClientCrmBusinessListedVo>
     */
    PageResult<ClientCrmBusinessListedVo> list(PageValidate pageValidate, ClientCrmBusinessSearchValidate searchValidate);

    /**
     * 商机详情
     *
     * @author LikeAdmin
     * @param id 主键ID
     * @return ClientCrmBusinessDetailVo
     */
    ClientCrmBusinessDetailVo detail(Integer id);

    /**
     * 商机新增
     *
     * @author LikeAdmin
     * @param createValidate 参数
     */
    void add(ClientCrmBusinessCreateValidate createValidate);

    /**
     * 商机编辑
     *
     * @author LikeAdmin
     * @param updateValidate 参数
     */
    void edit(ClientCrmBusinessUpdateValidate updateValidate);

    /**
     * 商机删除
     *
     * @author LikeAdmin
     * @param id 主键ID
     */
    void del(Integer id);

}
